package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-11-23  08:30
 */
class Frog {
    String frogname;
    int age;
    void Frog() {
        System.out.print(1);
    }
    void bark() {
        System.out.print(4);
    }
}
public class Cat {
    Cat() {
        System.out.print(5);
    }
    Cat(int a) {
        this();
        System.out.print(a);
    }
    void bark() {
        System.out.print("A");
    }

    public static void main(String[] args) {
        Cat cat = new Cat(8);
        System.out.print("9");
        Frog frog = new Frog();
        System.out.print("B");
        frog.bark();
        cat.bark();
    }
    {
        System.out.print("D");
    }
}
